Skip to main content

moveStack

Type

message

Summary

Sent to the current card when the user moves the stack window.

Syntax

moveStack <pNewStackH>, <pNewStackV>

Description

Handle the moveStack message if you want to respond to movement of the stack window.

The moveStack message is sent only if the user moved the stack window. This message is not sent when a handler moves the window by changing its location, rectangle, or other properties.

Known issue

Currently errors in moveStack and resizeStack are ignored, as this was causing a hang in the IDE.

Parameters

NameTypeDescription

pNewStackH

The horizontal distance in pixels from the left of the screen to the left edge of the stack.

pNewStackV

The vertical distance in pixels from the top of the screen to the top edge of the stack.

Examples

on moveStack finalLeft, finalTop
set the right of stack Palette to finalLeft - 5
set the top of stack Palette to finalTop
end moveStack

command: grab

glossary: handler, current card, message, stack window, rectangle

message: moveControl, resizeControl, resizeStack

property: properties, rectangle, location

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?